package net.takela.common.webflux.security.handler;

import org.springframework.web.bind.annotation.ExceptionHandler;

import java.util.HashMap;
import java.util.Map;


public class SecurityExceptionHandler {
    
    /**
     * 
     */
    @ExceptionHandler(Exception.class)
    public Map handleException(Exception e){
        System.out.println("===========ExceptionHandler START============");
        e.printStackTrace();
        System.out.println("==========END=============");
        Map result = new HashMap();
        result.put("status","error");
        result.put("msg", e.getMessage());
        return result;
    }
}
